package com.example.auv_660.auvorderload;

import com.example.auv_660.MainActivity;
import com.example.auv_660.command.AUVPropeller;
import com.example.auv_660.util.Constants;
import com.example.auv_660.util.MsgType;

public class ModuleOrderLoad extends OrderLoad {
    private MainActivity mainActivity = MainActivity.getInstance();

    @Override
    public void doOrder(String order) {
        mainActivity.sendMsgToMainThread(MsgType.CONTROLLER_MSG, "遥控");
        final String AUVorder = Constants.AUV_PROPELLER_ORDER_PREFIX + order + Constants.AUV_ORDER_SUFFIX;
        System.out.println("AUVorder: " + AUVorder);
        AUVPropeller.INSTANCE.getAuvPropellerCommand().writeCommand(AUVorder);
    }
}
